<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2018/5/13
  Time: 12:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int sum = 0;
    for (int i =1;i <= 100;i++) {
        sum = sum + i;
    }
    pageContext.setAttribute("sum",new Integer(sum));
%>
和为：${sum}
</body>
</html>
